<?php 
	require_once('connexion.php'); 
	?>

<?php
 $q=$_GET["q"];
 

	//enum client
$query_users2 = $pdo->prepare("SELECT * FROM utilisateurs where societe_id= '$q' ORDER BY nom ASC"); //
$query_users2->execute();
$data_users2 = $query_users2->fetchAll();


	
  ?>

					
<form action="" method="post" name="suppr">
  <p align="center"><strong><u>Supprimer un utilisateur</u></strong></p>
  <div align="center">
    <table width="500" border="0" cellpadding="5" cellspacing="0" class="tableaux">
      <tr>
        <td width="240"><div align="center">
            <select name="suppr" size="5" id="select2">
			
			         <?php foreach($data_users2 as $row ){ ?>
			  <option value="<?php echo $row['id_user']?>">
       <?php if($row['privilege']== "admin") {
									echo ">>"; }
				echo $row['nom']." ".$row['prenom']." (".$row['login'].")"."&nbsp;&nbsp;&nbsp;"."[".$row['privilege']."]" ; 
			  if($row['privilege']== "admin"){
								echo "<<" ; }
			  ?>
              </option> 
			<?php
				}
			  ?>


            </select>
            <input name="verif" type="hidden" id="verif">
        </div></td>
        <td width="157"><input type="submit" name="Submit2" value="Supprimer cet utilisateur"></td>
      </tr>
    </table>
   
  </div>
</form>
  